package org.zfes.snowier.cloud.zbss.cms.model.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsModelItem extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsModelItem() {}
	public CmsModelItem(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="所属模型不能为空")
	  private java.lang.Long modelId;
 
	@javax.validation.constraints.NotNull(message="字段不能为空")
	@javax.validation.constraints.NotBlank(message="字段不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="字段长度不能大于50")
	  private java.lang.String fieldName;
 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	@javax.validation.constraints.NotBlank(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="名称长度不能大于100")
	  private java.lang.String fieldLabel;
 
	@javax.validation.constraints.NotNull(message="排列顺序不能为空")
	  private java.lang.Integer sortNum;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="默认值长度不能大于255")
	  private java.lang.String defaultValue;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="可选项长度不能大于255")
	  private java.lang.String optionValue;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=20,message="长度长度不能大于20")
	  private java.lang.String textSize;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=3,message="文本行数长度不能大于3")
	  private java.lang.String areaRows;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=3,message="文本列数长度不能大于3")
	  private java.lang.String areaCols;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="帮助信息长度不能大于255")
	  private java.lang.String help;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=1,message="帮助位置长度不能大于1")
	  private java.lang.String helpPosition;
 
	@javax.validation.constraints.NotNull(message="数据类型不能为空")
	  private java.lang.Integer dataType;
 
	@javax.validation.constraints.NotNull(message="是否独占一行不能为空")
	  private java.lang.Byte isSingleLine;
 
	@javax.validation.constraints.NotNull(message="是否显示不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="是否必填项不能为空")
	  private java.lang.Byte isRequired;
	
	  private java.lang.Integer imageWidth;
	  private java.lang.Integer imageHeight;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="是否栏目模型项不能为空")
	  private java.lang.Byte isColumn;
 
	@javax.validation.constraints.NotNull(message="是否自定义不能为空")
	  private java.lang.Byte isCustom;
 
	
	//<-------------------------------------------->
	public CmsModelItem setModelId(java.lang.Long modelId){
	 this.modelId=modelId;
	 return this;
	}
	public java.lang.Long getModelId(){
		return this.modelId;
	}
	public CmsModelItem setFieldName(java.lang.String fieldName){
		this.fieldName=fieldName==null?null:fieldName.trim();
	 return this;
	}
	public java.lang.String getFieldName(){
		return this.fieldName;
	}
	public CmsModelItem setFieldLabel(java.lang.String fieldLabel){
		this.fieldLabel=fieldLabel==null?null:fieldLabel.trim();
	 return this;
	}
	public java.lang.String getFieldLabel(){
		return this.fieldLabel;
	}
	public CmsModelItem setSortNum(java.lang.Integer sortNum){
	 this.sortNum=sortNum;
	 return this;
	}
	public java.lang.Integer getSortNum(){
		return this.sortNum;
	}
	public CmsModelItem setDefaultValue(java.lang.String defaultValue){
		this.defaultValue=defaultValue==null?null:defaultValue.trim();
	 return this;
	}
	public java.lang.String getDefaultValue(){
		return this.defaultValue;
	}
	public CmsModelItem setOptionValue(java.lang.String optionValue){
		this.optionValue=optionValue==null?null:optionValue.trim();
	 return this;
	}
	public java.lang.String getOptionValue(){
		return this.optionValue;
	}
	public CmsModelItem setTextSize(java.lang.String textSize){
		this.textSize=textSize==null?null:textSize.trim();
	 return this;
	}
	public java.lang.String getTextSize(){
		return this.textSize;
	}
	public CmsModelItem setAreaRows(java.lang.String areaRows){
		this.areaRows=areaRows==null?null:areaRows.trim();
	 return this;
	}
	public java.lang.String getAreaRows(){
		return this.areaRows;
	}
	public CmsModelItem setAreaCols(java.lang.String areaCols){
		this.areaCols=areaCols==null?null:areaCols.trim();
	 return this;
	}
	public java.lang.String getAreaCols(){
		return this.areaCols;
	}
	public CmsModelItem setHelp(java.lang.String help){
		this.help=help==null?null:help.trim();
	 return this;
	}
	public java.lang.String getHelp(){
		return this.help;
	}
	public CmsModelItem setHelpPosition(java.lang.String helpPosition){
		this.helpPosition=helpPosition==null?null:helpPosition.trim();
	 return this;
	}
	public java.lang.String getHelpPosition(){
		return this.helpPosition;
	}
	public CmsModelItem setDataType(java.lang.Integer dataType){
	 this.dataType=dataType;
	 return this;
	}
	public java.lang.Integer getDataType(){
		return this.dataType;
	}
	public CmsModelItem setIsSingleLine(java.lang.Byte isSingleLine){
	 this.isSingleLine=isSingleLine;
	 return this;
	}
	public java.lang.Byte getIsSingleLine(){
		return this.isSingleLine;
	}
	public CmsModelItem setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsModelItem setIsRequired(java.lang.Byte isRequired){
	 this.isRequired=isRequired;
	 return this;
	}
	public java.lang.Byte getIsRequired(){
		return this.isRequired;
	}
	public CmsModelItem setImageWidth(java.lang.Integer imageWidth){
	 this.imageWidth=imageWidth;
	 return this;
	}
	public java.lang.Integer getImageWidth(){
		return this.imageWidth;
	}
	public CmsModelItem setImageHeight(java.lang.Integer imageHeight){
	 this.imageHeight=imageHeight;
	 return this;
	}
	public java.lang.Integer getImageHeight(){
		return this.imageHeight;
	}
	public CmsModelItem setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsModelItem setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsModelItem setIsColumn(java.lang.Byte isColumn){
	 this.isColumn=isColumn;
	 return this;
	}
	public java.lang.Byte getIsColumn(){
		return this.isColumn;
	}
	public CmsModelItem setIsCustom(java.lang.Byte isCustom){
	 this.isCustom=isCustom;
	 return this;
	}
	public java.lang.Byte getIsCustom(){
		return this.isCustom;
	}

}
